a11y: Remove double initialization of variables
authorBenjamin Otte <otte@redhat.com>
Fri, 26 Jun 2020 12:05:02 +0000 (14:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 4 Jul 2020 22:34:21 +0000 (00:34 +0200)
gtk/a11y/gtkcellaccessible.c
gtk/a11y/gtkpasswordentryaccessible.c

index 239032331ef99134061209aae85423f6459946c5..e55144ba026347b35b324f7a9112f8ed47c13b7e 100644 (file)
@@ -295,7 +295,6 @@ gtk_cell_accessible_action_do_action (AtkAction *action,
   GtkCellAccessible *cell = GTK_CELL_ACCESSIBLE (action);
   GtkCellAccessibleParent *parent;
 
-  cell = GTK_CELL_ACCESSIBLE (action);
   if (gtk_accessible_get_widget (GTK_ACCESSIBLE (cell)) == NULL)
     return FALSE;
 
index d071e049e058028f10848cba85509442bd468da9..3b3236767fac56c0d28098c0dc44bbfe5c65186a 100644 (file)
@@ -65,7 +65,7 @@ static gunichar
 gtk_password_entry_accessible_get_character_at_offset (AtkText *atk_text,
                                                        gint     offset)
 {
-  GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text));
+  GtkText *text;
   char *contents, *index;
   gunichar result;